<div class="row toolbar">
  <div class="col-md-6">
    <span class="toolbar-header">
      Drug List
    </span>
  </div>
  <div class="col-md-6 text-right">
    <ul class="toolbar-nav">
      <li><%= link_to feather_icon('circle-plus'), new_drug_path %></li>
      <li><%= link_to feather_icon('trash'), new_drug_path %></li>
      <li><%= link_to feather_icon('file-add'), new_drug_path %></li>
    </ul>
    <input type="text" placeholder="Search" class="search-box" />
  </div>
</div>

<table class="table table-striped">
  <thead>
    <tr>
      <th><%= t :code %></th>
      <th><%= t :name %></th>
      <th><%= t :price_per_item %></th>
      <th><%= t :description %></th>
    </tr>
  </thead>

  <tbody>
    <% @drugs.each do |drug| %>
      <tr>
        <td><%= link_to drug.code, drug %></td>
        <td><%= link_to drug.name, drug %></td>
        <td><%= drug.price_per_item %></td>
        <td><%= drug.description %></td>
      </tr>
    <% end %>
  </tbody>
</table>




